{% extends "base_generic.html" %}

{% load widget_tweaks %}

{% block content %}
  <div class="card" style="max-width: 500px; margin: 50px auto;">
    <h1>重置密码</h1>
    <p>请输入您的注册邮箱地址，我们将向您发送重置密码的链接。</p>
    <form action="" method="post">{% csrf_token %}
      <div class="form-group">
        <label for="{{ form.email.id_for_label }}">邮箱地址:</label>
        {% if form.email.errors %}
          {% for error in form.email.errors %}
            <p class="text-danger">{{ error }}</p>
          {% endfor %}
        {% endif %}
        {{ form.email|add_class:"form-control"|attr:"placeholder:输入您的邮箱" }}
      </div>
      <button type="submit" class="btn btn-primary btn-block">发送重置链接</button>
    </form>
  </div>
{% endblock %}
